API Help
EPLAN API / API Reference / Actions / projectmanagement
In This Topic
    projectmanagement
    In This Topic
    Action class for project management.
    

    Parameter Description

    TYPE

    Type of task to be performed:
    • READPROJECTINFO: Load project information from an XML file into the project.
    • ToggleSections:If project sections are enabled, temporarily enables/disables whole project for the currently logged-in user. Note: The project must be open.
    • PUBLISHTODISK: Publishes project to disk.
    • PUBLISHTOEMAIL: Publishes project to e-mail.
    • CREATESNAPSHOTCOPY:Creates snapshot copy of the project.
    • EXPORTPROPERTYPLACEMENTSSCHEMAS:Exports property placements schemas.
    • IMPORTPROPERTYPLACEMENTSSCHEMAS:Imports property placements schemas.
    • REORGANIZE:Reorganizes project.
    • CORRECTPROJECTITEMS:Corrects project items.
    

    PROJECTNAME

    Project name with full path (optional).
    If not entered, the selected project is used when the action is call from GUI (like from a script or button bar). 
    If called from the windows command line, PROJECTNAME must be set or the   must be used first, otherwise an   exception is thrown. 
    

    FILENAME

    Full path / name of the XML file to be imported, or the filename to be send by e-mail, or full file path to be published to,
    or full file path to target project when creating snapshot copy.
    

    SCHEME

    Name of the scheme. This parameter is only effective with the following values of the TYPE parameter:PUBLISHTODISK, PUBLISHTOEMAIL, CREATESNAPSHOTCOPY, CORRECTPROJECTITEMS.
    

    OVERWRITE

    If the imported property placement schema already exists, this parameter specifies whether it should be overwritten. 
    Possible values: 
    '0' - No (default), 
    '1' - Yes.
    This parameter is only effective with the following values of the TYPE parameter:IMPORTPROPERTYPLACEMENTSSCHEMAS.
    

    EXTENDEDMODE

    Enables extended mode while reorganizing the project.
    Possible values: 
    '0' - No (default), 
    '1' - Yes.
    This parameter is only effective with the following values of the TYPE parameter:REORGANIZE.
    

    Remarks
    The specified project may be open or closed. If the project is not open, it is opened when the process is started and closed after the export.
    

    Example
    projectmanagement /TYPE:READPROJECTINFO /PROJECTNAME:"C:\Projects\EPLAN\ESS_Sample_Project.elk" /FILENAME:C:\Files\ProjectInfo.xml
    
    projectmanagement /TYPE:ToggleSections /PROJECTNAME:"C:\Projects\EPLAN\ESS_Sample_Project.elk"
    
    projectmanagement /TYPE:EXPORTPROPERTYPLACEMENTSSCHEMAS /PROJECTNAME:"C:\Projects\EPLAN\ESS_Sample_Project.elk" /FILENAME:C:\Files\PPSchemas.xml
    
    projectmanagement /TYPE:IMPORTPROPERTYPLACEMENTSSCHEMAS /PROJECTNAME:"C:\Projects\EPLAN\ESS_Sample_Project.elk" /FILENAME:C:\Files\PPSchemas.xml /OVERWRITE:1
    
    projectmanagement /TYPE:REORGANIZE /PROJECTNAME:"C:\Projects\EPLAN\ESS_Sample_Project.elk" /EXTENDEDMODE:1
    
    projectmanagement /TYPE:CORRECTPROJECTITEMS /PROJECTNAME:"C:\Projects\EPLAN\ESS_Sample_Project.elk" /SCHEME:Default